package month4.day13;

import org.omg.CORBA.PUBLIC_MEMBER;

public class PC {
    private String brand;
    private String color;
    private String size;
    private String OS;
    private int hardDiskcapacity;//硬盘容量
    Dish []dishes=new Dish[10];


    //软件重名
    public boolean chongming(int fp,String name){
        for(int i=0;i<fp;i++){
            for(int j=0;j<dishes[i].soft;j++){
                if(dishes[i].softwares[j].getName().equals(name))
                    return true;
            }
        }
        return false;
    }
    public String getBrand() {
        return brand;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    public String getSize() {
        return size;
    }

    public void setSize(String size) {
        this.size = size;
    }

    public String getOS() {
        return OS;
    }

    public void setOS(String OS) {
        this.OS = OS;
    }

    public int getHardDiskcapacity() {
        return hardDiskcapacity;
    }

    public void setHardDiskcapacity(int hardDiskcapacity) {
        this.hardDiskcapacity = hardDiskcapacity;
    }

    public Dish[] getDishes() {
        return dishes;
    }

    public void setDishes(Dish[] dishes) {
        this.dishes = dishes;
    }
}
